﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EditFinaceRecord.aspx.cs" Inherits="EditFinaceRecord" Theme="DefaultSkin"  %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>编辑财务记录</title>
    <script src="JS/My97DatePicker/WdatePicker.js"></script>
    <script>
        function Close()
        {
            window.parent.PopWinFinaceEdit.Hide();
        }
        
        function CheckSubmit()
        {
            if( document.getElementById('txtAmount').value == '')
            {
                alert('支付金额必顺填写!');
                return false;
            }
            
            if( isNaN( document.getElementById('txtAmount').value ) )
            {
                alert('金额必顺为数字类型!');
                return false;
            }
            
            if(document.getElementById('txtPayTime').value == '')
            {
                alert('支付时间必顺填写!');
                return false;
            }
            
            return true;
        }
        
    </script>
</head>
<body style="margin-left:0px;margin-top:0px;">
    <form id="form1" runat="server">
    
     <ul style="text-align:left;" align="left">
        <li class="liEdit">
            <b>收支类型:</b>:<asp:Label ID="lblPayTypeName" runat="server" Width="178px"></asp:Label>
        </li>
        <li class="liEdit">
            <b>收支金额:</b><asp:TextBox ID="txtAmount" runat="server"  Width="178px"></asp:TextBox>
        </li>
         <li class="liEdit">
             <b>收支详情:</b><asp:TextBox ID="txtDetail" runat="server"  TextMode="MultiLine"  Height="50px" Columns="10" Rows="5" Width="178px"></asp:TextBox>
        </li>
        <li class="liEdit">
             <b>收支时间:</b><asp:TextBox ID="txtPayTime" runat="server" onfocus="WdatePicker({position:{left:250,top:50},dateFmt:'yyyy-MM-dd HH:mm'})" Width="178px" /></asp:TextBox>
        </li>
        <li  class="liEdit" style="line-height:50px;padding-left:20px">
        
            <asp:Button ID="btnOk" runat="server" Text="确定" onclick="btnOk_Click" OnClientClick="return CheckSubmit();"/>
            &nbsp;&nbsp; &nbsp;
            <input type="button" value="关闭" onclick="Close();" class="ButtonBlue" />
        </li>
    </ul>
    </form>
</body>
</html>
